package com.chushouya.product.dto.admin.product.evaluate;

import com.chushouya.common.constant.EvaluateItemSelectTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("SKU估价项目DTO")
public class SkuItemDTO {

    @ApiModelProperty("估价项目ID")
    private Long skuItemId;

    @ApiModelProperty("项目ID")
    private Long itemId;

    @ApiModelProperty("估价项目名称")
    private String itemName;

    @ApiModelProperty("估价项目类型(0单选 1多选)")
    private Integer selectType;


    @ApiModelProperty("估价项目选项列表")
    private List<SkuItemValueDTO> skuItemValueList;

    public SkuItemDTO() {
    }

    public String getSelectTypeDesc(){
        return EvaluateItemSelectTypeEnum.getDesc(this.selectType);
    }
}
